package com.group.eams.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.group.eams.pojo.dto.AssetDetailQueryDto;
import com.group.eams.pojo.dto.MaintenApplyQueryDto;
import com.group.eams.pojo.entity.MaintenApply;
import com.group.eams.pojo.vo.FixedAssetListVo;
import com.group.eams.pojo.vo.MaintenApplyListVo;
import com.group.eams.service.MaintenApplyService;
import com.group.eams.mapper.MaintenApplyMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 恩哲欣
* @description 针对表【mainten_apply(维保申请)】的数据库操作Service实现
* @createDate 2024-10-29 16:09:34
*/
@Service
public class MaintenApplyServiceImpl extends ServiceImpl<MaintenApplyMapper, MaintenApply>
implements MaintenApplyService{

    @Override
    public Page<MaintenApplyListVo> findMaintenApplyByPage(Page<MaintenApply> page, MaintenApplyQueryDto maintenApplyQueryDto) {
        return getBaseMapper().findMaintenApplyByPage(page,maintenApplyQueryDto);
    }

    @Override
    public Page<FixedAssetListVo> findDetailByPage(Page<MaintenApply> page, AssetDetailQueryDto detailQueryDto) {
        return getBaseMapper().findDetailByPage(page,detailQueryDto);
    }

    @Override
    public List<MaintenApply> findByMaintenApplyNum(String maintenApplyNum) {
        return getBaseMapper().findByMaintenApplyNum(maintenApplyNum);
    }
}
